home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / alpha.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-28  |  7.0 KB  |  241 lines

  1. /* machine description file For the alpha chip.
  2.    Copyright (C) 1994 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="note"
  25.  
  26. NOTE-START
  27. Use -opsystem=osf1
  28. NOTE-END
  29.  
  30. */
  31.  
  32. #define DEC_ALPHA        /* Digital Alpha AXP */
  33.  
  34. /* Define WORD_MACHINE if addresses and such have
  35.  * to be corrected before they can be used as byte counts.  */
  36.  
  37. /* #define WORD_MACHINE */
  38.  
  39. /* XEmacs addition: is this necessary? */
  40.  
  41. /* XEmacs: Apparently not Andrew Cohen  8/24/95 */
  42. /* Define how to take a char and sign-extend into an int.
  43.    On machines where char is signed, this is a no-op.  */
  44.  
  45. /* #define SIGN_EXTEND_CHAR(c) ((signed char)(c)) */
  46.  
  47. /* Now define a symbol for the cpu type, if your compiler
  48.    does not define it automatically:
  49.    Ones defined so far include vax, m68000, ns16000, pyramid,
  50.    orion, tahoe, APOLLO and many others */
  51.  
  52. /* __alpha defined automatically */
  53.  
  54.  
  55. /* Use type EMACS_INT rather than a union, to represent Lisp_Object */
  56. /* This is desirable for most machines.  */
  57.  
  58. /* XEmacs change:  something is not quite right with this defined. */
  59. /* #define NO_UNION_TYPE */
  60.  
  61. /* Define the type to use.  */
  62. #define EMACS_INT long
  63. #define EMACS_UINT unsigned long
  64. #define SPECIAL_EMACS_INT
  65.  
  66. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  67.    the bit field into an int.  In other words, if bit fields
  68.    are always unsigned.
  69.  
  70.    If you use NO_UNION_TYPE, this flag does not matter.  */
  71.  
  72. #define EXPLICIT_SIGN_EXTEND
  73.  
  74. /* Data type of load average, as read out of kmem.  */
  75. /* Load average requires special crocks.  Version 19 has them.
  76.    For now, don't define this.  */
  77.  
  78. #define LOAD_AVE_TYPE long 
  79.  
  80. /* Convert that into an integer that is 100 for a load average of 1.0  */
  81.  
  82. #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
  83.  
  84. /* Define CANNOT_DUMP on machines where unexec does not work.
  85.    Then the function dump-emacs will not be defined
  86.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  87.  
  88. /* #define CANNOT_DUMP */
  89.  
  90. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  91.    pure and impure space as loaded can vary, and even their
  92.    relative order cannot be relied on.
  93.  
  94.    Otherwise Emacs assumes that text space precedes data space,
  95.    numerically.  */
  96.  
  97. /* #define VIRT_ADDR_VARIES */
  98.  
  99. /* Define C_ALLOCA if this machine does not support a true alloca
  100.    and the one written in C should be used instead.
  101.    Define HAVE_ALLOCA to say that the system provides a properly
  102.    working alloca function and it should be used.
  103.    Define neither one if an assembler-language alloca
  104.    in the file alloca.s should be used.  */
  105.  
  106. #define HAVE_ALLOCA
  107.  
  108. /* GNU malloc and the relocating allocator do not work together
  109.    with X.   [Who wrote that?]  */
  110.  
  111. /* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the
  112.    system and the gnu malloc system work with "alpha-dec-osf3.0" and
  113.    "alpha-dec-osf3.2".  */
  114.  
  115. /* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both
  116.    mallocs work with "alpha-dec-osf2.0", but I daren't break anything
  117.    right now.  Feel free to play if you want.  */
  118.  
  119. /* #define SYSTEM_MALLOC */
  120.  
  121. /* Define NO_REMAP if memory segmentation makes it not work well
  122.    to change the boundary between the text section and data section
  123.    when Emacs is dumped.  If you define this, the preloaded Lisp
  124.    code will not be sharable; but that's better than failing completely.  */
  125.  
  126. /* #define NO_REMAP */
  127.  
  128. /* Some really obscure 4.2-based systems (like Sequent DYNIX)
  129.  * do not support asynchronous I/O (using SIGIO) on sockets,
  130.  * even though it works fine on tty's.  If you have one of
  131.  * these systems, define the following, and then use it in
  132.  * config.h (or elsewhere) to decide when (not) to use SIGIO.
  133.  *
  134.  * You'd think this would go in an operating-system description file,
  135.  * but since it only occurs on some, but not all, BSD systems, the
  136.  * reasonable place to select for it is in the machine description
  137.  * file.
  138.  */
  139.  
  140. /* #define NO_SOCK_SIGIO */
  141.  
  142.  
  143. #define HAVE_X11R4
  144. #define HAVE_X11R5
  145.  
  146.  
  147. /* Describe layout of the address space in an executing process.  */
  148.  
  149. #define TEXT_START    0x120000000
  150. #define DATA_START    0x140000000
  151.  
  152. #if 0 /* #### XEmacs: see below */
  153.  
  154. /* This is necessary for mem-limits.h, so that start_of_data gives
  155.    the correct value */
  156.  
  157. #define DATA_SEG_BITS 0x140000000
  158.  
  159. #endif
  160.  
  161.  
  162. #define ORDINARY_LINK
  163.  
  164. /* Some systems seem to have this, others don't.  */
  165. #ifdef HAVE_LIBDNET
  166. #define LIBS_MACHINE -ldnet
  167. #else
  168. #define LIBS_MACHINE -ldnet_stub
  169. #endif
  170.  
  171. #if 0 /* Rainer Schoepf <schoepf@uni-mainz.de> says this loses with X11R6
  172.      since it has only shared libraries.  */
  173. #ifndef __GNUC__
  174. /* This apparently is for the system ld as opposed to Gnu ld.  */
  175. #ifdef OSF1
  176. #define LD_SWITCH_MACHINE      -non_shared
  177. #endif
  178. #endif
  179. #endif /* 0 */
  180.  
  181. #define LIBS_DEBUG
  182.  
  183. /* XEmacs change: */
  184. /* A.C. Do NOT include /usr/lib/cmplrs/cc/crt0.o here! */
  185. #define START_FILES pre-crt0.o 
  186.  
  187.  
  188. /* The program to be used for unexec. */
  189.  
  190. #define UNEXEC unexalpha.o
  191.  
  192. #define PNTR_COMPARISON_TYPE unsigned long
  193.  
  194. #if 1 /* #### XEmacs: I think that XEmacs has not been yet restructured
  195.      to allow this. */
  196. /* I think that maybe it has Andrew Cohen 08/23/95 */
  197.  
  198. /* On the 64 bit architecture, we can use 60 bits for addresses */
  199.  
  200. #define VALBITS         60
  201.  
  202.  
  203. /* This definition of MARKBIT is necessary because of the comparison of
  204.    ARRAY_MARK_FLAG and MARKBIT in an #if in lisp.h, which cpp doesn't like. */
  205.  
  206. #define MARKBIT         0x8000000000000000L
  207.  
  208.  
  209. /* Define XINT and XUINT so that they can take arguments of type int */
  210.  
  211. #define XINT(a)  (((long) (a) << (LONGBITS - VALBITS)) >> (LONGBITS - VALBITS))
  212. #define XUINT(a) ((long) (a) & VALMASK)
  213.  
  214. /* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
  215.  
  216. #define XPNTR(a) XUINT (a)
  217.  
  218. /* Declare malloc and realloc in a way that is clean.
  219.    But not in makefiles!  */
  220.  
  221. #ifndef NOT_C_CODE
  222. #ifndef THIS_IS_YMAKEFILE
  223. /* We need these because pointers are larger than the default ints.  */
  224. #include <alloca.h>
  225.  
  226. #endif /* not THIS_IS_YMAKEFILE */
  227. #endif /* not NOT_C_CODE */
  228.  
  229. #endif /* 1 */
  230.  
  231. /* XEmacs addition */
  232.  
  233. #ifndef PURESIZE
  234. #define PURESIZE     800000
  235. #endif
  236.  
  237. /* XEmacs: The Dec CC compiler (but apparently not GCC, which uses different
  238.    macros due to its own compiler bug) breaks spectacularly
  239.    when MACROIZE_ERROR_CHECKING is turned on. */
  240. #define BROKEN_MACROIZE_ERROR_CHECKING
  241.